import request from '@/utils/request'

/**
* 故障日志分页查询
* @param {查询条件} data
*/
export function listFaultLog(query) {
  return request({
    url: 'business/FaultLog/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增故障日志
* @param data
*/
export function addFaultLog(data) {
  return request({
    url: 'business/FaultLog',
    method: 'post',
    data: data,
  })
}
/**
* 修改故障日志
* @param data
*/
export function updateFaultLog(data) {
  return request({
    url: 'business/FaultLog',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取故障日志详情
* @param {Id}
*/
export function getFaultLog(id) {
  return request({
    url: 'business/FaultLog/' + id,
    method: 'get'
  })
}

/**
* 删除故障日志
* @param {主键} pid
*/
export function delFaultLog(pid) {
  return request({
    url: 'business/FaultLog/delete/' + pid,
    method: 'delete'
  })
}
